package cn.lcsjsxy.yxz.day.Abnormal;

//转换异常
public class Conversionexception {

    public static void main(String[] args) throws Exception{

        //
        User8 user = new User8();

        int i = 10;
        int j = 0;

        try {
            user.test(i,j);
        }catch (Exception e){
            e.printStackTrace();
        }


    }

}

class User8 {
    public void test(int i, int j) throws Exception {
        try {
            System.out.println(i / j);
        } catch (ArithmeticException e) {
            throw new Exception();
        }
    }
}